import React from 'react';
import Item from '../item/item';

let List = React.createClass({

    render() {

        let listEle = this.props.musicList.map((item) => {
            return (
                <Item key = {item.id} item={item} focus={ item === this.props.currentMusicItem}></Item>
            );
        });
        return (  <ul>{listEle}</ul> );


    }


});

export default List;